//
//  UserInfo.m
//  CommunityApp
//
//  Created by 秦乾龙 on 16/12/8.
//  Copyright © 2016年 秦乾龙. All rights reserved.
//

#import "UserInfo.h"

@implementation UserInfo
- (instancetype)initWithDic:(NSDictionary*)dic
{
    if ([dic isKindOfClass:[NSDictionary class]]) {
        if([dic[@"userInfo"] isKindOfClass:[NSDictionary class]]){
            self.name = dic[@"userInfo"][@"nick_name"];
            self.headerImageUrl = dic[@"userInfo"][@"head_url"];
            self.personSign = dic[@"userInfo"][@"user_signature"];
            self.collectionCount = dic[@"collection"];
            self.fansCount = dic[@"personcount"];
            self.careCount = dic[@"follow"];
            self.active = dic[@"actionper"];
   
        }
       
    }
    //    self.name = dic[@"nick_name"];
    return self;
}
@end
